<? include('layer/head.html'); ?>

<body class="ly13 usercenter">
	<? include('layer/topnav.html'); ?>
	<? include('layer/header.html'); ?>
	<div class="contenter clrfix">
    	<div class="aside_left">
        	<? include('layer/usercentermenu.html'); ?>
        </div>
    	<div class="article Buy_item">
            <div class="box_border">
            	<div class="wrap section">
                    <div class="hd">我购买的道具</div>
                    <?
                    if($user_package)
                    {
                    ?>
                    <table border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td width="210" class="th">道具名称</td>
                        <td width="150" class="th">数量</td>
                        <td width="243" class="th">功能</td>
                        <td width="180" class="th" >有效日期</td>
                      </tr>
                        <?
                        foreach($user_package as $key=>$val)
                        {
                        ?>
                      <tr>
                        <td><?= $val['prop_info']['props_name'] ?></td>
                        <td><?= $val['count'] ?></td>
                        <td><?= $val['prop_info']['props_name'] ?></td>
                        <td><?= date('Y-m-d H:i', $val['endtime']) ?></td>
                      </tr>
                        <?
                        }
                        ?>
                    </table>
                    <? include('layer/pagination.html'); ?>
                    <?
                    }
                    ?>
                </div>
                
            </div>
        </div>
    	
    </div>
	<? include('layer/footer.html'); ?>
<? include('layer/foot.html'); ?>
<? include('layer/jsstart.html'); ?>
